package com.worthtech.billportal.bean;

/**
 * WtMgrKeyinfoParamId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtMgrKeyinfoParamId implements java.io.Serializable {

	// Fields

	private String orgcode;
	private String mnkey;
	private String insId;

	// Constructors

	/** default constructor */
	public WtMgrKeyinfoParamId() {
	}

	/** full constructor */
	public WtMgrKeyinfoParamId(String orgcode, String mnkey, String insId) {
		this.orgcode = orgcode;
		this.mnkey = mnkey;
		this.insId = insId;
	}

	// Property accessors

	public String getOrgcode() {
		return this.orgcode;
	}

	public void setOrgcode(String orgcode) {
		this.orgcode = orgcode;
	}

	public String getMnkey() {
		return this.mnkey;
	}

	public void setMnkey(String mnkey) {
		this.mnkey = mnkey;
	}

	public String getInsId() {
		return this.insId;
	}

	public void setInsId(String insId) {
		this.insId = insId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtMgrKeyinfoParamId))
			return false;
		WtMgrKeyinfoParamId castOther = (WtMgrKeyinfoParamId) other;

		return ((this.getOrgcode() == castOther.getOrgcode()) || (this
				.getOrgcode() != null
				&& castOther.getOrgcode() != null && this.getOrgcode().equals(
				castOther.getOrgcode())))
				&& ((this.getMnkey() == castOther.getMnkey()) || (this
						.getMnkey() != null
						&& castOther.getMnkey() != null && this.getMnkey()
						.equals(castOther.getMnkey())))
				&& ((this.getInsId() == castOther.getInsId()) || (this
						.getInsId() != null
						&& castOther.getInsId() != null && this.getInsId()
						.equals(castOther.getInsId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOrgcode() == null ? 0 : this.getOrgcode().hashCode());
		result = 37 * result
				+ (getMnkey() == null ? 0 : this.getMnkey().hashCode());
		result = 37 * result
				+ (getInsId() == null ? 0 : this.getInsId().hashCode());
		return result;
	}

}